package io.renren.dao;

import io.renren.common.dao.BaseDao;
import io.renren.entity.AutodecorateitemsdEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * ${comments}
 *
 * @author Sen 524227263@qq.com
 * @since 1.0.0 2024-05-30
 */
@Mapper
public interface AutodecorateitemsdDao extends BaseDao<AutodecorateitemsdEntity> {

    @Select("select b.Name as projectName,b.Name,a.BusinessPrice,a.BusinessAmount,a.Amount from Autodecorateitemsd a " +
            "left join ProjectM b ON a.ProjectM_FK = b.ProjectMOID " +
            "where AutoDecorateM_FK =#{autoDecorateMoId}")
    List<Map<String, Object>> exSql(@Param("autoDecorateMoId") String autoDecorateMoId);
}